<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<TITLE> New Document </TITLE>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="../../../jtmpl.js"></script>
	<script type="text/javascript" src="../jtmpl_jquery.js"></script>
<script language="JavaScript">
<!--
	var tmpl_url = 'file:///E:/code/google_svn/trunk/plugins/jquery/example/data_tmpl.html';
	var json_url = 'file:///E:/code/google_svn/trunk/plugins/jquery/example/data_json.html';
	var json_url2 = 'file:///E:/code/google_svn/trunk/plugins/jquery/example/data_json2.html';
	function load_jtmpl(){
		$('#t1').getJTmpl( tmpl_url, null, json_url );
	}
	function load_jtmpl2(){
		$('#t1').getJTmpl( tmpl_url, null, json_url2 );
	}

	function load_jtmpl3(){
		$('#t2').setJTmplPostEvents( function () { alert('Post'); } );
		$('#t2').getJTmplCache( tmpl_url, null, json_url );
	}
	function load_jtmpl4(){
		$('#t2').getJTmplCache( tmpl_url, null, json_url2 );
	}

//-->
</script>
</HEAD>
<BODY>
<h1>TEst</h1>
<div class="t1" id="t1" style="border: 1px green solid;" name="qqq">
Тестовый контейнер
</div>
<div class="t2" id="t2" style="border: 1px blue solid;" name="qqq">
Тестовый контейнер 2
</div>
<div class="t3" id="t3" style="border: 1px blue solid;" name="qqq">
Тестовый контейнер 3
</div>

<input type="button" value="GO!" onClick="load_jtmpl();">&nbsp;<input type="button" value="GO2!" onClick="load_jtmpl2();"><br />
<input type="button" value="GO3!" onClick="load_jtmpl3();">&nbsp;<input type="button" value="GO4!" onClick="load_jtmpl4();">



</BODY>
</HTML>